
import java.util.Random;

public class MathPracticeV01 {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i = 0; i < 50; i++) {
            int num1 = random.nextInt(100);
            int num2 = random.nextInt(100);
            char operator = random.nextBoolean() ? '+' : '-';
            int result = operator == '+' ? num1 + num2 : num1 - num2;
            System.out.printf("%2d %c %d = %2d\n",i,num1,operator,num2,result);
        }
    }
}

